//
//  ZHBlogViewController.m
//  ArthurRoom
//
//  Created by 赵宏亚 on 2019/8/17.
//  Copyright © 2019 ArthurRoom. All rights reserved.
//

#import "ZHBlogViewController.h"
#import "ZHBlogServiceProtocol.h"

@interface ZHBlogViewController ()<UIWebViewDelegate,ZHBlogServiceProtocol>

@property (weak, nonatomic) IBOutlet UIWebView *webView;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *navHeight;


@end

@implementation ZHBlogViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.webView.delegate = self;
    [(UIScrollView *)[[self.webView subviews] objectAtIndex:0] setBounces:NO];
    NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"https://anchoritefiligod.gitee.io/appblog/"]];
    [self.webView loadRequest:request];
    
    NSLog(@"name **** %@",self.name);
    
}

- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType {
    NSLog(@"开始加载");
    
    
    
    return YES;
}

- (void)webViewDidFinishLoad:(UIWebView *)webView {
    NSLog(@"加载结束");
}

- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error {
    
    NSLog(@"加载失败");
}




- (IBAction)backClick:(UIButton *)sender {
    [self.navigationController popViewControllerAnimated:YES];
}

@end
